package task

type waitActTypeEnum = string

type waitActTypeStruct struct {
	WAIT_LOAD           waitActTypeEnum
	WAIT_UNLOAD         waitActTypeEnum
	WAIT_HOISTER_LOCK   waitActTypeEnum
	WAIT_HOISTER_UNLOCK waitActTypeEnum
}

//取货/卸货等待类型
var WaitActTypeEnum = &waitActTypeStruct{
	WAIT_LOAD:           "WAIT_LOAD",
	WAIT_UNLOAD:         "WAIT_UNLOAD",
	WAIT_HOISTER_LOCK:   "WAIT_HOISTER_LOCK",
	WAIT_HOISTER_UNLOCK: "WAIT_HOISTER_UNLOCK",
}

var waitEnumMap = map[waitActTypeEnum]string{
	WaitActTypeEnum.WAIT_LOAD:           "取货等待",
	WaitActTypeEnum.WAIT_UNLOAD:         "卸货等待",
	WaitActTypeEnum.WAIT_HOISTER_LOCK:   "提升机锁定等待",
	WaitActTypeEnum.WAIT_HOISTER_UNLOCK: "提升机解锁等待",
}

// 获取取货/卸货等待类型描述
func GetWaitEnumDesc(code waitActTypeEnum) string {
	if wait, ok := waitEnumMap[code]; ok {
		return wait
	}
	return "未知类型"
}
